package ro.sobis;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Hashtable;
import java.util.Map;

import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;

import ro.sobis.repetor.EncryptDecrypt;


public class Suporter {


	public static void main(String[] args) {
		try{
			String dateConexiune = "ilie.receu@sobis.ro###1232ili###ir1/sobis";

			EncryptDecrypt ed = new EncryptDecrypt();
			byte [] encServerName= ed.encrypt(dateConexiune);

			Socket s = new Socket("localhost",5000);

			OutputStream os = s.getOutputStream();
			InputStream in= s.getInputStream();  
			os.write(encServerName);

			try{
				in.read();
			}catch(IOException ex){ex.printStackTrace();}
			
			
			
			
		}catch(Exception e ){
			e.printStackTrace();}


		
	}

}
